package com.zhousoft.blog.action;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.freeocs.action.Action;
/**
 * 分页
 * @author chirs
 *
 */
public class PageAction extends Action {
	public void index(HttpServletRequest req, HttpServletResponse res, String[] args) throws ServletException, IOException {
		if(args.length==2){
			req.setAttribute("p_args", new Integer[]{Integer.valueOf(args[0]),Integer.valueOf(args[1])});
		}
		req.getRequestDispatcher("/index.vm").forward(req, res);
	}
}
